
// 封装弹窗
uni.$showMsg = function(title="加载数据失败！", duration=1500){
	uni.showToast({
		title: title,
		duration: duration,
		icon:"none"
	})
}

// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

  // console.log('111111')
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
// 导入store
import store from "./store/store.js"
import Vuex from 'vuex';
export function createApp() {
  const app = createSSRApp(App)
  // console.log('22222')
  app.use(store)
  return {
    app
  }
}
// #endif
// 封装的https
import { http } from "./http/http.js"
uni.$http=http
// 封装的api
import api from './http/api.js'
uni.api = api
